package routers

import (
	"cinema/controllers"

	"github.com/astaxie/beego"
)

func init() {
	beego.Router("/", &controllers.HomeController{})
	beego.Router("/login", &controllers.LoginController{})
	beego.Router("/registered", &controllers.RegisteredController{})
	beego.Router("/purchase", &controllers.PurchaseController{})
	beego.Router("/refund", &controllers.RefundController{})
	beego.Router("/search", &controllers.SearchController{})
	beego.Router("/search/cinemainfo", &controllers.SearchController{}, "post:GetCinemaInfo")
	beego.Router("/search/orderinfo", &controllers.SearchController{}, "post:GetOrderInfo")
}
